﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace WpUserControls
{
    public partial class MainPage : PhoneApplicationPage
    {
        // Constructor
        public MainPage()
        {
            InitializeComponent();
        }

        private void roundCornerButton1_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            NavigationService.Navigate(new Uri("/Buttons.xaml", UriKind.Relative));
        }

        private void roundCornerButton2_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            NavigationService.Navigate(new Uri("/TextBoxes.xaml", UriKind.Relative));
        }

        private void roundCornerButton3_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            NavigationService.Navigate(new Uri("/PinBoxes.xaml", UriKind.Relative));
        }

        private void toggleSwitch1_ToggleSwitched(object sender, EventArgs e)
        {
            textBlock1.Text = "Toggle Switch " + (sender as WpUserControls.UserControls.ToggleSwitch).Value.ToString();
        }
    }
}